import { Bk_Curriculum_Structure } from 'src/curriculum_structure/bk_curriculum_structure.entity';
import { Entity, Column, PrimaryGeneratedColumn, OneToMany } from 'typeorm';

@Entity()
export class Bk_Course_Category {
    @PrimaryGeneratedColumn()
    id: number;

    @Column({ unique: true })
    category_name: string;

    @OneToMany(() => Bk_Curriculum_Structure, course => course.category)
    course: Bk_Curriculum_Structure[]
}